import request from '@/utils/request'

// 查询健康计划列表
export function listHealthPlans(query) {
  return request({
    url: '/reminders/HealthPlans/list',
    method: 'get',
    params: query
  })
}

// 查询健康计划详细
export function getHealthPlans(id) {
  return request({
    url: '/reminders/HealthPlans/' + id,
    method: 'get'
  })
}

// 新增健康计划
export function addHealthPlans(data) {
  return request({
    url: '/reminders/HealthPlans',
    method: 'post',
    data: data
  })
}

// 修改健康计划
export function updateHealthPlans(data) {
  return request({
    url: '/reminders/HealthPlans',
    method: 'put',
    data: data
  })
}

// 删除健康计划
export function delHealthPlans(id) {
  return request({
    url: '/reminders/HealthPlans/' + id,
    method: 'delete'
  })
}
